/**
 * 备案监管 API
 * @type {MoFilingSuperviseApi}
 */
const moFilingSuperviseApi = new class MoFilingSuperviseApi extends BaseApi {
    constructor() {
        super({
            url: '/api/moFilingSupervise',
            exp: true,
        })
    }

    async dealBatch(idList) {
        return (await rxajax.post(this.using('/handle-batch'), idList, {
            type: 'json',
        })).data
    }

    async dealCancelBatch(idList) {
        return (await rxajax.post(this.using('/cancel-handle-batch'), idList, {
            type: 'json',
        })).data
    }

    async filingBatch(idList) {
        return (await rxajax.post(this.using('/filing-batch'), idList, {
            type: 'json',
        })).data
    }
}()